 <#include "../common/layout.html"/>
 <@layout title1="博客" title2="管理博客">

<div class="row-fluid">
	 <div class="link-bar">                  
	   <a href="${basepath!}/admin/blog/edit"><i class="icon-plus"></i>发布新的博客</a>
	 </div>
<div class="well">
    <table class="table">
      <thead>
        <tr>
          <th>#</th>
          <th style="width:450px;overflow:hidden;">标题</th>
          <th>博客类型</th>
          <th>是否置顶</th>
          <th>发布状态</th>
          <th>更新时间</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
      	<#list beans.list as x>
        <tr>
          <td>${x_index+1+(beans.startIndex)!0}</td>
          <td title="${(x.title)!}">
          <div style="width:450px;text-overflow:ellipsis; word-break:keep-all;white-space:nowrap; overflow:hidden;">
          ${(x.title)!}
          </div>
          </td>
          <td>
          ${(x.blogType.type_name)!}
          </td>
          
          <td>
           <#if x.isTop == 0>
          	否
          </#if>
          <#if x.isTop == 1>
          	是
          </#if>
          </td>
          <td>
           <#if x.status == 1>
          	<span style="color:green">发布</span>
          </#if>
          <#if x.status == 0>
          	<span style="color:red">未发布</span>
          </#if>
          </td>
          <td>
          	${(x.update_time)?string("yyyy年MM月d日")!}
          </td>
          <td>
              <a title="编辑" href="${basepath!}/admin/blog/edit/${(x.id)!}"><i class="icon-pencil"></i></a>
              &nbsp;
              <a title="删除" delete="delete" href="#comfirm_dialog" url="${basepath!}/admin/blog/delete/${(x.id)!}" msg="确定删除？" role="button" data-toggle="modal"><i class="icon-remove"></i></a>
          </td>
        </tr>
        </#list>
      </tbody>
    </table>
</div>

<#include "${basepath!}/WEB-INF/pages/admin/common/pagination.html" />
<@paginate page=beans url="/admin/blog/list" />
         
            </div>
</@layout>